package com.glodon.paas.job.model;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class MonitorEvent {
    private String type;
    private String traceId;
    private boolean traceIndex;
    private boolean isStartUp;
    private String cmd;
    private Date time = new Date();
    private Map<String, Object> values = new HashMap<String, Object>();

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTraceId() {
        return traceId;
    }

    public void setTraceId(String traceId) {
        this.traceId = traceId;
    }

    public boolean isTraceIndex() {
        return traceIndex;
    }

    public void setTraceIndex(boolean traceIndex) {
        this.traceIndex = traceIndex;
    }

    public String getCmd() {
        return cmd;
    }

    public void setCmd(String cmd) {
        this.cmd = cmd;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Map<String, Object> getValues() {
        return values;
    }

    public void setValues(Map<String, Object> values) {
        this.values = values;
    }

    public void addValue(String key, Object value) {
        values.put(key, value);
    }

	public boolean isStartUp() {
		return isStartUp;
	}

	public void setStartUp(boolean isStartUp) {
		this.isStartUp = isStartUp;
	}
}
